package hello;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import data.dataprocess;

public class InsertData extends HttpServlet {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2901590924601450268L;

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		String id = req.getParameter("id");
		String lat =  req.getParameter("lat");
		String lon = req.getParameter("lon");
		String spd = req.getParameter("spd");
		String dir = req.getParameter("dir");
		
		dataprocess dp = dataprocess.getInstance();
		dp.insertData(id, lat, lon, spd, dir);
	
	}
}
